//
//  PPPrivacyPolicyViewController.m
//  pet
//
//  Created by 陈无忌 on 9/26/14.
//  Copyright (c) 2014 whalefin. All rights reserved.
//

#import "PPPrivacyPolicyViewController.h"

@interface PPPrivacyPolicyViewController ()<UIWebViewDelegate>
@property (weak, nonatomic) IBOutlet UIWebView *privacyWebView;

@end

@implementation PPPrivacyPolicyViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization
    }
    return self;
}

- (void)viewDidLoad
{
    [super viewDidLoad];
    [self loadWebPageWithString:@"http://pet.fundoing.cn/html/privacy_policies.htm"];
    // Do any additional setup after loading the view.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)loadWebPageWithString:(NSString*)urlString
{
    NSURL *myUrl =[NSURL URLWithString:urlString];
    NSURLRequest *request =[NSURLRequest requestWithURL:myUrl];
    [self.privacyWebView loadRequest:request];
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
